home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
appsrcs.zip
/
APPPRINT.ZIP
/
APPPRINT.MAK
< prev
next >
Wrap
Makefile
|
1993-03-22
|
2KB
|
122 lines
PROJ = APPPRINT
PROJFILE = APPPRINT.MAK
DEBUG = 0
PWBRMAKE = pwbrmake
NMAKEBSC1 = set
NMAKEBSC2 = nmake
LINKER = link
ILINK = ilink
LRF = echo > NUL
BIND = bind
RC = rc
IMPLIB = implib
LFLAGS_G = /BATCH
LFLAGS_D = /CO /INC /NOF
LFLAGS_R = /NOF /NOP /NOP /BATCH
MAPFILE_D = NUL
MAPFILE_R = NUL
CC = cl
CFLAGS_G = /AM /W4 /G2 /Gw /Zp /BATCH
CFLAGS_D = /Zi /Gi$(PROJ).mdt /Od /Gs /FPa
CFLAGS_R = /Os /Og /Oe /FPc /Gs
LLIBS_R = /NOD:MLIBCE MLIBCEW
LLIBS_D = /NOD:MLIBCA MLIBCAW
LLIBS_G = LIBW.LIB shell ctl3d commdlg
ASM = masm
AFLAGS_G = /Mx /T
AFLAGS_D = /Zi
DEF_FILE = APPPRINT.DEF
OBJS = APPPRINT.obj APPTOOLS.obj SELECT.obj
RESS = APPPRINT.res
SBRS = APPPRINT.sbr APPTOOLS.sbr SELECT.sbr
all: $(PROJ).exe
.SUFFIXES: .c .sbr .rc .res .obj
APPPRINT.res : APPPRINT.RC
APPPRINT.obj : APPPRINT.C
APPPRINT.sbr : APPPRINT.C
APPTOOLS.obj : APPTOOLS.C
APPTOOLS.sbr : APPTOOLS.C
SELECT.obj : SELECT.C
SELECT.sbr : SELECT.C
$(PROJ).bsc : $(SBRS)
$(PWBRMAKE) @<<
$(BRFLAGS) $(SBRS)
<<
$(PROJ).exe : $(DEF_FILE) $(OBJS) $(RESS)
!IF $(DEBUG)
$(LRF) @<<$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_D)
$(LLIBS_G: = +^
) +
$(LLIBS_D: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_D);
<<
!ELSE
$(LRF) @<<$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_R)
$(LLIBS_G: = +^
) +
$(LLIBS_R: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_R);
<<
!ENDIF
!IF $(DEBUG)
$(ILINK) -a -e "$(LINKER) @$(PROJ).lrf" $@
!ELSE
$(LINKER) @$(PROJ).lrf
!ENDIF
$(RC) $(RESS) $@
.c.sbr :
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FR$@ $<
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FR$@ $<
!ENDIF
.rc.res :
$(RC) /r $<
.c.obj :
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /Fo$@ $<
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /Fo$@ $<
!ENDIF
run: $(PROJ).exe
WIN $(PROJ).exe $(RUNFLAGS)
debug: $(PROJ).exe
WIN CVW $(CVFLAGS) $(PROJ).exe $(RUNFLAGS)